package com.atguigu.avl;

/**
 * @author shkstart
 * @create 2021-10-25 12:36
 */
public class Test {
}
class Node1{
    int value;
    Node1 left;
    Node1 right;

   public Node1(int value){
       this.value=value;
   }
   //高度
    public int height(){
       return Math.max(left==null? 0:left.height(),right==null?0:right.height())+1;

    }
//    //返回左子树的高度
//    public int leftHeight(){
////       if (root)
//    }
}
